function set_current_status(update_time, content, status_id) {
	var span = document.getElementById('currentStatus');

	var current = new Date();
	var updateTime = new Date(update_time);
	if (updateTime.toString() == 'Invalid Date') {
		update_time=update_time.replace(/\s+/g, 'T');
		var month=update_time.substring(3,5);
		if(month.charAt(1)=='-'){
			update_time=update_time.substring(0,3)+'0'+update_time.substring(3);
		}
		
		var date=update_time.substring(6,8);
		if(date.charAt(1)=='T'){
			update_time=update_time.substring(0,6)+'0'+update_time.substring(6);
		}
		
		var hour=update_time.substring(9,11);
		if(hour.charAt(1)==':'){
			update_time=update_time.substring(0,9)+'0'+update_time.substring(9);
		}
		
		var minute=update_time.substring(12,14);
		if(minute.charAt(1)==':'){
			update_time=update_time.substring(0,12)+'0'+update_time.substring(12);
		}
		
		var second=update_time.substring(15,17);
		if(second.charAt(1)=='.'){
			update_time=update_time.substring(0,15)+'0'+update_time.substring(15);
		}
		
		update_time = '20' + update_time;
		update_time = update_time.substring(0, update_time.indexOf('.'));
		updateTime = new Date(update_time);
	}

	var offset = current.getTime() - updateTime.getTime();
	var result = '';

	var days = Math.floor(offset / (24 * 3600 * 1000));
	if (days == 0) {
		var offset1 = offset % (24 * 3600 * 1000);
		var hours = Math.floor(offset1 / (3600 * 1000));
		if (hours == 0) {
			var offset2 = offset1 % (3600 * 1000);
			var minutes = Math.floor(offset2 / (60 * 1000));
			if (minutes == 0) {
				var offset3 = offset2 % (60 * 1000);
				var seconds = Math.round(offset3 / 1000);
				result = "<b>" + seconds + "</b> seconds ago &nbsp; ";
			} else {
				result = "<b>" + minutes + "</b> minutes ago &nbsp; ";
			}
		} else {
			result = "<b>" + hours + "</b> hours ago &nbsp; ";
		}
	} else {
		result = "<b>" + days + "</b> days ago &nbsp; ";
	}

	span.innerHTML = result + content;
}